package com.ruoyi.project.express.api.controller;

import com.ruoyi.framework.web.controller.BaseController;
import com.ruoyi.framework.web.domain.AjaxResult;
import com.ruoyi.project.express.api.domain.Express;
import com.ruoyi.project.express.api.service.IExpressService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * 快递控制
 * 
 * @author lindor
 */
@Controller
@RequestMapping("/express")
public class ExpressController extends BaseController
{

    @Autowired
    private IExpressService expressService;

    /**
     * 物流信息
     */
    @GetMapping("/logistics")
    @ResponseBody
    public AjaxResult returnLogisticsInfo(Express express)
    {
        return expressService.returnLogisticsInfo(express.getCom(), express.getNo(), express.getPhone());
    }

}
